/*
 * @Author: QMZhao
 * @Description: 登录模块
 * @Date: 2023-01-28 17:36:26
 * @LastEditTime: 2023-01-28 17:45:06
 * @Reference: 
 */
import request from "@/utils/request";

enum Path {
  login = "/login",
  logout = "/logout"
}

/**
 * 登录
 * 
 * @param params 
 * @returns 
 */
export function fetchLogin<T>(params:T) {
  return request.post(Path.login, params)
}

/**
 * 登出
 * 
 * @param params 
 * @returns 
 */
export function fetchLogout<T>(params:T) {
  return request.post(Path.logout, params)
}